<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form action="req2" method="get">
        <input type="text" name="username">
        <input type="text" name="password">
        <input type="checkbox" name="hobby" value="1">游泳
        <input type="checkbox" name="hobby" value="2">爬山
        <input type="submit">
    </form>

</body>
</html>